package b1.scenes.suspect
{
	import b1.conifg.*;
	import b1.net.*;
	import b1.players.*;
	
	import flash.display.Sprite;
	import flash.text.*;

	public class ClueMessage extends Sprite
	{
		public function ClueMessage(clueIndex:int, clueValue:int)
		{
			super();
			//背景图片
			var ClueMsgBgrImage:Class = ResourceHelper.getInstance().getClassByName("ClueMsgBgrImage");
			var clueMsgBgrSprite:Sprite = new ClueMsgBgrImage();
//			clueMsgBgrSprite.alpha = 0.5; 
			addChild(clueMsgBgrSprite);
			//线索
			var clueText:TextField = new TextField();
			clueText.selectable = false;
        	clueText.autoSize = TextFieldAutoSize.LEFT;
			clueText.defaultTextFormat = new TextFormat("微软雅黑", 25, 0x000000);
			var clueConfig:ClueConfig = Config.clueConfigs[clueIndex]; 
			clueText.text = clueConfig.name + ": " + clueConfig.values[clueValue];
			clueText.x = (this.width - clueText.width) / 2;
			clueText.y = (this.height - clueText.height) / 4;
			addChild(clueText);
//			//线索值
//			var clueValueText:TextField = new TextField();
//			clueValueText.selectable = false;
//        	clueValueText.autoSize = TextFieldAutoSize.LEFT;
//			clueValueText.defaultTextFormat = new TextFormat("微软雅黑", 25, 0x0000FF);
//			clueValueText.text = 
//			clueValueText.x = clueText.x + clueText.width + 5;
//			clueValueText.y = clueText.y;
//			addChild(clueValueText);
		}
		
	}
}